<template>
	<view class="my">
		<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Group 11599@2x.png" class="myback">
		</image>
		<view class="headertop" :style="{'background':flag1?'#FCE5CC':''}">
			<view class="box"
				:style="{'margin-top':statusBarHeight+'px','width':'100%','height':barHeight+'px','display':'flex','align-items': 'center'}">
				<image
					src="https://39gongli.oss-cn-beijing.aliyuncs.comhttps://chunchi.oss-cn-beijing.aliyuncs.com/static/Group 2@2x.png"
					class="pagelefticon" mode=""></image>
			</view>
		</view>
		<view class="userboxcenter">
			<view class="userline" @click="gopage('个人信息')">
				<image
					:src="userobj.avatar||'https://chunchi.oss-cn-beijing.aliyuncs.com/static/微信图片_20250510120328.png'"
					class="avtar" mode=""></image>
				<view class="usertext" v-if="userobj.avatar">
					<view class="nickname">
						{{userobj.nickname}}
					</view>
					<view class="phonenum">
						{{userobj.mobile.slice(0,3)}}****{{userobj.mobile.slice(7,11)}}
					</view>
				</view>

				<view class="usertext" v-if="!userobj.nickname">
					<view class="nickname">
						未登录
					</view>
				</view>
				<view class="szbox">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(12).png" class="icon"
						mode=""></image>
				</view>
				<!-- <view class="hym" @click.stop="gopage('会员码')">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(13).png" class="icon"
						mode=""></image>
					<view class="t">
						会员码
					</view>
				</view> -->
			</view>
			<view class="membercard" @click="gopage('开通会员')">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/hybjjj.png" class="membercardimg"
					mode=""></image>
				<view class="kthyline">
					<view class="leftinfo">
						<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/image@2x(1).png" class="image1"
							mode=""></image>
						<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/开通会员享权益@2x.png" class="textimg"
							v-if="!userobj.level" mode=""></image>
						<view class="t2" v-if="userobj.level">
							{{!userobj.level?'':'会员截止时间：'+timestampfun(userobj.levelend*1000)}}
						</view>
					</view>
					<view class="rightborder">
						<span style="margin-left: 20rpx;">{{!userobj.level?'开通会员':'续费'}}</span>
						<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(14).png"
							class="arrowimg" mode=""></image>
					</view>
				</view>
				<view class="bottomline">
					<image
						:src="!userobj.level?'https://chunchi.oss-cn-beijing.aliyuncs.com/static/更多权益@2x.png':'/static/qyixinxi.png'"
						class="moreicon" mode=""></image>
					<view class="huiyuantext" v-if="!userobj.level">
						<span>购物享会员折扣 <span style="color:#A46F3A ;">{{zhekou}}折</span> </span>
						<span>积分可<span style="color:#A46F3A ;">兑换好礼</span> </span>
						<span>加入会员...</span>
					</view>
					<view class="huiyuantext" v-else>
						{{userobj['vipfile']}}
					</view>
				</view>
			</view>
		</view>
		<view class="myorder">
			<view class="titleline">
				<view class="leftdd" style="margin-left: 24rpx;">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Rectangle 24357@2x.png"
						class="leftddbox" mode="">
					</image>
					<view class="title">
						我的订单
					</view>
				</view>
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/微信图片_20250523182748.png"
					class="arrowicon" mode="" @click="gopage('商品订单','all')"></image>
			</view>
			<view class="fenleizt">
				<view class="itembox" style="margin-left: 28rpx;" @click="gopage('商品订单','unpaid')">
					<view class="readuce" v-if="orderobj['unpaid']">
						{{orderobj['unpaid']}}
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(15).png" mode=""></image>
					<span>待付款</span>
				</view>
				<view class="itembox" @click="gopage('商品订单','nosend')">
					<view class="readuce" v-if="orderobj['nosend']">
						{{orderobj['nosend']}}
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(16).png" mode=""
						@click="gopage('订单','nosend')">
					</image>
					<span>待发货</span>
				</view>
				<view class="itembox" @click="gopage('商品订单','nohexiao')">
					<view class="readuce" v-if="orderobj['hexiao']">
						{{orderobj['hexiao']}}
					</view>
					<image src="/static/Frame@2x(2).png" mode="" @click="gopage('订单','noget')">
					</image>
					<span>待核销</span>
				</view>
				<view class="itembox" @click="gopage('商品订单','noget')">
					<view class="readuce" v-if="orderobj['noget']">
						{{orderobj['noget']}}
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(17).png" mode=""
						@click="gopage('订单','nohexiao')">
					</image>
					<span>待收货</span>
				</view>
				<view class="itembox" style="margin-right: 18rpx;" @click="gopage('售后订单')">
					<view class="readuce" v-if="orderobj['aftersale']">
						{{orderobj['aftersale']}}
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(18).png" mode=""></image>
					<span>退款/售后</span>
				</view>
			</view>
		</view>
		<view class="zichan">
			<view class="titleline">
				<view class="leftdd" style="margin-left: 24rpx;">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Rectangle 24357@2x.png"
						class="leftddbox" mode="">
					</image>
					<view class="title">
						我的资产
					</view>
				</view>
			</view>
			<view class="centerbox">
				<view class="itembox" @click="gopage('余额充值')">
					<view class="texts">
						<view class="t1">
							余额充值
						</view>
						<view class="t2">
							充值享福利
						</view>
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/download 9@2x.png" mode=""></image>
				</view>
				<view class="itembox" @click="gopage('余额提现')">
					<view class="texts">
						<view class="t1">
							余额提现
						</view>
						<view class="t2">
							可随时提现
						</view>
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/download 10@2x.png" mode=""></image>
				</view>
				<view class="itembox" @click="gopage('我的业绩')">
					<view class="texts">
						<view class="t1">
							我的业绩
						</view>
						<view class="t2">
							查看我的数据
						</view>
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/download 11@2x.png" mode=""></image>
				</view>
				<view class="itembox" @click="gopage('我的积分')">
					<view class="texts">
						<view class="t1">
							我的积分
						</view>
						<view class="t2">
							积分可用于兑好礼
						</view>
					</view>
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/download 12@2x.png" mode=""></image>
				</view>
			</view>
		</view>
		<image :src="myobj['jiameng']" @click="gopage('招商加盟')" class="jiameng" mode="widthFix"></image>
		<view class="classifygnq">
			<view class="itembox" style="margin-left: 24rpx;" @click="gopage('地址管理')">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/wwwFrame@2x(2).png" mode=""></image>
				<span>地址管理</span>
			</view>
			<view class="itembox" @click="gopage('帮助中心')">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (5).png" mode=""></image>
				<span>帮助中心</span>
			</view>
			<view class="itembox" @click="gopage('我的收藏')">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (4).png" mode=""></image>
				<span>我的收藏</span>
			</view>
			<view class="itembox" @click="gopage('联系我们')">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (3).png" mode=""></image>
				<span>联系我们</span>
			</view>
			<view class="itembox" @click="gopage('核销通道')" v-if="userobj.is_hexiao==1">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/xxxFrame@2x(2).png" mode=""></image>
				<span>核销通道</span>
			</view>
		</view>
		<view class="popu">
			<up-popup :show="show" mode="center" :zoom="false">
				<view class="hym" v-show="typestr=='会员码'">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
						mode="" @click="show=false" />
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Group 10057@2x.png" class="hymback"
						mode=""></image>
					<view class="title">
						会员码
					</view>
					<image :src="userobj['erweima']" :show-menu-by-longpress="true" class="erweimaimg" mode=""></image>
					<view class="huiyuanmanum">
						会员码：{{userobj['cardnum']}}
					</view>
					<view class="fuzhihuiym" @click="goResult(userobj['cardnum'])">
						复制会员码
					</view>
				</view>
				<view class="zsjm" v-show="typestr=='招商加盟'">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
						mode="" @click="show=false" />
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Rectangle 24432@2x.png"
						class="zsjmbackuimg" mode="">
					</image>
					<view class="title">
						招商加盟
					</view>
					<view class="forms">
						<view class="linebox">
							<view class="title1">
								类型：
							</view>
							<view class="input" @click="gopage('招商加盟类型')">
								<input type="text" v-model="jiamengobj.type" placeholder="请选择" :disabled="true" />
								<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (8).png"
									class="rightarrow" mode="">
								</image>
								<view style="width: 20rpx;">

								</view>
							</view>
						</view>
						<view class="linebox">
							<view class="title1">
								联系人：
							</view>
							<view class="input">
								<input type="text" v-model="jiamengobj.username" placeholder="请输入联系人" />
								<view style="width: 20rpx;">

								</view>
							</view>
						</view>
						<view class="linebox">
							<view class="title1">
								手机号：
							</view>
							<view class="input">
								<input type="text" v-model="jiamengobj.telphone" placeholder="请输入手机号" />
								<view style="width: 20rpx;">

								</view>
							</view>
						</view>
						<view class="linebox">
							<view class="title1">
								说明：
							</view>
							<view class="input">
								<input type="text" v-model="jiamengobj.shuoming" placeholder="请输入说明" />
								<view style="width: 20rpx;">

								</view>
							</view>
						</view>
					</view>
					<view class="qdbox" @click="qdjiameng">
						确定
					</view>
				</view>
				<view class="zhifusucess" v-show="typestr=='提交成功'">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
						mode="" @click="show=false" />
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(19).png" mode=""
						class="centernimg"></image>
					<view class="text">
						提交成功
					</view>
					<view class="btn" @click="show=false">
						确定
					</view>
				</view>
				<view class="lianxiwomen" v-show="typestr=='联系我们'">
					<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
						mode="" @click="show=false" />
					<view class="title">
						联系我们
					</view>
					<image :src="myobj['lxwomen']" class="erweimaimg1" mode=""></image>
					<view class="text">
						微信扫码添加
					</view>
				</view>
			</up-popup>
		</view>
		<view class="" style="height: 180rpx;">

		</view>
		<userlogin ref="denglu" @updata="getuser"></userlogin>
		<up-picker :show="show1" :columns="columns" @cancel="cancel" @confirm="confirm"></up-picker>
		<Tabbar page="/pages/my/index"></Tabbar>
	</view>
</template>

<script setup>
	import Tabbar from '@/components/tabbar.vue'
	import userlogin from '@/components/getuser/getuser.vue'
	import {
		ref,
		onMounted,
		reactive
	} from 'vue'
	import {
		onShow,
		onPageScroll
	} from "@dcloudio/uni-app";
	import {
		userinfo,
		configfile,
		jiamenginit,
		userdata
	} from '@/api/my.js'
	import {
		indexfile
	} from '@/api/home.js'
	const userobj = ref({})
	const zhekou = ref(8)
	const barHeight = ref('')
	const statusBarHeight = ref('')
	const denglu = ref(null)
	const orderobj = ref({})
	const show = ref(false)
	const show1 = ref(false)
	const columns = reactive([
		['企业', '个人']
	]);
	const jiamengobj = reactive({
		type: '',
		username: "",
		telphone: '',
		shuoming: ''
	})
	const myobj = ref({})
	const typestr = ref('')
	onMounted(() => {
		statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight
		const {
			top,
			height
		} = wx.getMenuButtonBoundingClientRect();
		barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38;
	})
	onShow(() => {
		if (uni.getStorageSync('token')) {
			getuser()
		} else {
			userobj.value = {
				avatar: '',
				level: 0
			}
		}
		jiameng()
		homeinit()
		shulianginit()
	})
	async function shulianginit() {
		const res = await userdata()
		if (res.code == 1) {
			orderobj.value = res.data.order_num
		}
	}
	async function homeinit() {
		const res1 = await indexfile()
		if (res1.code == 1) {
			zhekou.value = res1.data.vip.zhekou
		}
	}

	function timestampfun(time) {
		const date = new Date(time);
		const year = date.getFullYear();
		const month = String(date.getMonth() + 1).padStart(2, "0");
		const day = String(date.getDate()).padStart(2, "0");
		const hours = String(date.getHours()).padStart(2, "0");
		const minutes = String(date.getMinutes()).padStart(2, "0");
		const seconds = String(date.getSeconds()).padStart(2, "0");
		const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}`;
		return formattedDate
	}

	// 加盟
	async function qdjiameng() {
		if (!jiamengobj.type || !jiamengobj.username || !jiamengobj.telphone || !jiamengobj.shuoming) {
			uni.showToast({
				icon: 'none',
				title: '请补全加盟信息'
			})
			return
		}
		if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(jiamengobj.telphone))) { //校验手机号码是否有误
			uni.showToast({
				title: '请填写正确手机号码',
				icon: "none"
			});
			return false;
		}
		const res = await jiamenginit(jiamengobj)
		if (res.code == 1) {
			show.value = true
			typestr.value = '提交成功'
			uni.showToast({
				icon: 'none',
				title: '加盟成功'
			})
			reveserform()
		} else {
			uni.showToast({
				icon: 'none',
				title: res.msg
			})
		}
	}

	function cancel() {
		show1.value = false
	}

	function confirm(e) {

		jiamengobj.type = e.value[0]
		show1.value = false
	}

	function reveserform() {
		jiamengobj.type = ''
		jiamengobj.username = ''
		jiamengobj.telphone = ''
		jiamengobj.shuoming = ''
	}
	// 用户加盟图，联系我们
	async function jiameng() {
		const res = await configfile()
		if (res.code == 1) {
			myobj.value = res.data
		}
	}
	async function getuser() {
		const res = await userinfo()
		if (res.code == 1) {
			userobj.value = res.data
		}
	}

	function goResult(str) {
		uni.setClipboardData({
			data: str, // 需要复制的内容
			success: () => {
				// 成功提示框显示 1 秒钟
				uni.showToast({
					title: '复制成功',
					icon: 'success',
					duration: 1000
				});
			},
			fail: () => {
				// 失败提示框显示 1 秒钟
				uni.showToast({
					title: '复制失败，请重试',
					icon: 'none',
					duration: 1000
				});
			}
		});
	}

	function gopage(str, id) {
		if (!uni.getStorageSync('token')) {
			denglu.value.DengLu()
			return
		}
		if (str == '个人信息') {
			uni.navigateTo({
				url: '/pages/my/gerenziliao'
			})
		} else if (str == '联系我们') {
			show.value = true
			typestr.value = '联系我们'
		} else if (str == '我的收藏') {
			uni.navigateTo({
				url: '/pages/my/shoucang'
			})
		} else if (str == '地址管理') {
			uni.navigateTo({
				url: '/pages/my/shouhuodz'
			})
		} else if (str == '核销通道') {
			uni.navigateTo({
				url: '/pages/my/hxtd'
			})
		} else if (str == '帮助中心') {
			uni.navigateTo({
				url: '/pages/my/bzcenter'
			})
		} else if (str == '招商加盟') {
			show.value = true
			typestr.value = '招商加盟'
		} else if (str == '招商加盟类型') {
			show1.value = true
		} else if (str == '余额提现') {
			uni.navigateTo({
				url: '/pages/my/yuetixian'
			})
		} else if (str == '余额充值') {
			uni.navigateTo({
				url: '/pages/my/yuechongzhi'
			})
		} else if (str == '我的积分') {
			uni.navigateTo({
				url: '/pages/my/myjifen'
			})
		} else if (str == '商品订单') {
			uni.navigateTo({
				url: '/pages/my/orderList?type=' + id
			})
		} else if (str == '开通会员') {
			uni.navigateTo({
				url: '/pages/my/memberCard'
			})
		} else if (str == '售后订单') {
			uni.navigateTo({
				url: '/pages/my/shouhouorderList'
			})
		} else if (str == '我的业绩') {
			uni.navigateTo({
				url: '/pages/my/yeji'
			})
		} else if (str == '会员码') {
			if (userobj.value.level == 0) {
				uni.showToast({
					title: '请开通会员',
					icon: 'none'
				})
				return
			}
			show.value = true
			typestr.value = '会员码'
		}

	}
</script>

<style lang="scss">
	.popu::v-deep .u-popup__content {
		background-color: rgba(0, 0, 0, 0) !important;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
	}

	.hym {
		width: 686rpx;
		overflow: hidden;
		position: relative;

		.closeicon {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			right: 60rpx;
			top: 56rpx;
		}

		.hymback {
			width: 100%;
			height: 674rpx;
			position: absolute;
			z-index: -1;
		}

		.title {
			width: 100%;
			text-align: center;
			margin-top: 48rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
			margin-top: 60rpx;
		}

		.erweimaimg {
			width: 286rpx;
			height: 286rpx;
			margin: auto;
			display: block;
			margin-top: 42rpx;
		}

		.huiyuanmanum {
			width: 100%;
			text-align: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #86909C;
			margin-top: 28rpx;
		}

		.fuzhihuiym {
			width: 530rpx;
			height: 84rpx;
			background: linear-gradient(to top, #CD936A 0%, #F5C89D 100%);
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			text-align: center;
			line-height: 84rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 60rpx;
			margin-bottom: 28rpx;
		}
	}

	.zsjm {
		width: 668rpx;
		overflow: hidden;
		position: relative;

		.zsjmbackuimg {
			width: 668rpx;
			height: 718rpx;
			position: absolute;
			z-index: -1;
		}

		.qdbox {
			width: 604rpx;
			height: 80rpx;
			background: linear-gradient(to top, #CD936A 0%, #F5C89D 100%);
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			text-align: center;
			line-height: 80rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 20rpx;
			margin-bottom: 50rpx;
		}

		.forms {
			width: 604rpx;
			margin: auto;
			margin-top: 30rpx;
			overflow: hidden;

			.linebox {
				width: 100%;
				display: flex;
				height: 84rpx;
				background: #F7F8FA;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				border: 2rpx solid #F7F8FA;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 30rpx;

				.title1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #1D2129;
					margin-left: 28rpx;
				}

				.input {
					display: flex;
					align-items: center;

					input {
						text-align: right;
						font-size: 28rpx;
						transform: translateZ(0);
						backface-visibility: hidden;
						perspective: 1000px;
						transform: translate3d(0, 0, 0);
					}

					.rightarrow {
						width: 24rpx;
						height: 24rpx;
					}
				}
			}
		}

		.title {
			width: 100%;
			text-align: center;
			margin-top: 48rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
		}

		.closeicon {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			right: 24rpx;
			top: 24rpx;
		}
	}

	.lianxiwomen {
		width: 600rpx;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		overflow: hidden;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		background: linear-gradient(180deg, #FDE9D2 0%, #FFFFFF 27%);

		.closeicon {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			right: 28rpx;
			top: 24rpx;
		}

		.title {
			width: 100%;
			text-align: center;
			margin-top: 48rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
		}

		.erweimaimg1 {
			width: 274rpx;
			height: 274rpx;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			margin-top: 60rpx;
		}

		.text {
			width: 100%;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #86909C;
			margin: auto;
			margin-bottom: 64rpx;
			margin-top: 40rpx;
			text-align: center;
		}
	}

	.zhifusucess {
		width: 610rpx;
		background: linear-gradient(180deg, #FDE9D2 0%, #FFFFFF 27%);
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		overflow: hidden;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;

		.closeicon {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			right: 24rpx;
			top: 24rpx;
		}

		.centernimg {
			width: 124rpx;
			height: 124rpx;
			margin-top: 108rpx;
		}

		.text {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #1D2129;
			margin-top: 20rpx;
		}

		.btn {
			width: 254rpx;
			height: 64rpx;
			text-align: center;
			line-height: 64rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #FFFFFF;
			text-align: center;
			background: linear-gradient(to top, #CD936A 0%, #F5C89D 100%);
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			margin: 60rpx auto;
		}
	}

	page {
		background: #F7F8FA;
	}

	.my {
		width: 100%;
		overflow: hidden;
		position: relative;

		.jiameng {
			width: 686rpx;
			height: 170rpx;
			margin: 28rpx auto;
			display: block;
		}

		.classifygnq .itembox:last-child {
			margin-right: 22rpx;
		}

		.classifygnq {
			width: 686rpx;
			height: 160rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.1);
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin: auto;
			margin-bottom: 28rpx;

			.itembox {
				display: flex;
				flex-direction: column;
				align-items: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 22rpx;
				color: #86909C;

				image {
					width: 56rpx;
					height: 56rpx;
					margin-bottom: 16rpx;
				}
			}
		}

		.zichan {
			width: 686rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.1);
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			overflow: hidden;
			margin: auto;
			margin-top: 34rpx;

			.centerbox {
				width: 638rpx;
				margin: auto;
				overflow: hidden;
				margin-top: 28rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				flex-wrap: wrap;

				.itembox {
					width: 312rpx;
					height: 108rpx;
					background: #FBF4ED;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					overflow: hidden;
					display: flex;
					align-items: center;
					margin-bottom: 16rpx;
					position: relative;

					image {
						width: 116rpx;
						height: 100rpx;
						position: absolute;
						right: 8rpx;
					}

					.texts {
						margin-left: 16rpx;
						margin-top: 24rpx;
						margin-bottom: 24rpx;

						.t1 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							font-size: 28rpx;
						}

						.t2 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 22rpx;
							color: #86909C;
							margin-top: 12rpx;
						}
					}
				}
			}

			.titleline {
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 26rpx;

				.arrowicon {
					width: 24rpx;
					height: 24rpx;
					margin-right: 32rpx;
				}

				.leftdd {
					display: flex;
					align-items: center;
					margin-left: 24rpx;

					.leftddbox {
						width: 4rpx;
						height: 32rpx;
					}

					.title {
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 28rpx;
						color: #1D2129;
						margin-left: 12rpx;
					}
				}
			}
		}

		.myorder {
			width: 686rpx;
			margin: auto;
			margin-top: 28rpx;
			overflow: hidden;
			height: 222rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.1);
			border-radius: 16rpx 16rpx 16rpx 16rpx;

			.fenleizt {
				width: 100%;
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 32rpx;

				.itembox {
					display: flex;
					flex-direction: column;
					align-items: center;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #4E5969;
					position: relative;

					.readuce {
						padding: 0 8rpx;
						height: 24rpx;
						background: red;
						font-size: 22rpx;
						color: #fff;
						text-align: center;
						line-height: 24rpx;
						position: absolute;
						border-radius: 50%;
						top: -10rpx;
						left: 70rpx;
					}

					image {
						width: 64rpx;
						height: 64rpx;
						margin-bottom: 16rpx;
					}
				}
			}

			.titleline {
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 26rpx;

				.arrowicon {
					width: 24rpx;
					height: 24rpx;
					margin-right: 32rpx;
				}

				.leftdd {
					display: flex;
					align-items: center;
					margin-left: 24rpx;

					.leftddbox {
						width: 4rpx;
						height: 32rpx;
					}

					.title {
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 28rpx;
						color: #1D2129;
						margin-left: 12rpx;
					}
				}
			}
		}

		.membercard {
			width: 682rpx;
			margin: auto;
			margin-top: 28rpx;
			overflow: hidden;
			position: relative;

			.membercardimg {
				width: 682rpx;
				height: 196rpx;
				position: absolute;
				z-index: -1;
			}

			.bottomline {
				width: 100%;
				display: flex;
				margin-top: 44rpx;
				margin-bottom: 30rpx;

				.moreicon {
					width: 96rpx;
					height: 24rpx;
					margin-left: 30rpx;
				}

				.huiyuantext {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #B6865F;
					margin-left: 28rpx;
				}
			}

			.kthyline {
				width: 100%;
				display: flex;
				margin-top: 40rpx;
				position: relative;

				.rightborder {
					// width: 172rpx;
					height: 50rpx;
					border-radius: 25rpx 25rpx 25rpx 25rpx;
					border: 2rpx solid #A46F3A;
					display: flex;
					align-items: center;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #A46F3A;
					margin-left: 80rpx;
					position: absolute;
					right: 40rpx;

					.arrowimg {
						width: 32rpx;
						height: 32rpx;
					}
				}

				.leftinfo {
					display: flex;
					align-items: center;

					.t2 {
						font-size: 24rpx;
					}

					.image1 {
						width: 64rpx;
						height: 64rpx;
						margin-left: 40rpx;
					}

					.textimg {
						width: 258rpx;
						height: 35rpx;
						margin-left: 16rpx;
					}
				}
			}
		}

		.userboxcenter {
			width: 100%;
			overflow: hidden;
			margin-top: 220rpx;

			.userline {
				width: 100%;
				overflow: hidden;
				display: flex;
				align-items: center;
				position: relative;

				.avtar {
					width: 96rpx;
					height: 96rpx;
					margin-left: 32rpx;
					border-radius: 50%;
				}

				.hym {
					width: 212rpx;
					height: 58rpx;
					background: #E0C8AD;
					border-radius: 29rpx 0rpx 0rpx 29rpx;
					position: absolute;
					right: 0%;
					display: flex;
					align-items: center;

					.t {
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 28rpx;
						color: #A46F3A;
						margin-left: 8rpx;
					}

					.icon {
						width: 40rpx;
						height: 40rpx;
						margin-left: 24rpx;
					}
				}

				.szbox {
					width: 56rpx;
					height: 58rpx;
					background: #E0C8AD;
					border-radius: 29rpx 29rpx 29rpx 29rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					margin-left: 48rpx;

					.icon {
						width: 48rpx;
						height: 48rpx;
					}
				}

				.usertext {
					margin-left: 30rpx;
					width: 262rpx;
					white-space: nowrap;
					/* 防止文本换行 */
					overflow: hidden;
					/* 隐藏溢出的内容 */
					text-overflow: ellipsis;

					/* 显示省略号 */
					.nickname {
						font-family: PingFang SC, PingFang SC;
						font-weight: bold;
						font-size: 32rpx;
						color: #1D2129;
						white-space: nowrap;
						/* 防止文本换行 */
						overflow: hidden;
						/* 隐藏溢出的内容 */
						text-overflow: ellipsis;
					}

					.phonenum {
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 26rpx;
						color: #4E5969;
						margin-top: 16rpx;
					}
				}
			}
		}

		.myback {
			position: absolute;
			width: 100%;
			height: 552.27rpx;
			z-index: -1;
		}

		.headertop {
			width: 100%;
			position: fixed;
			top: 0%;
			overflow: hidden;
			transition: 0.5s;
			z-index: 9999;

			.box {
				width: 100%;
				display: flex;
				align-items: center;

				.pagelefticon {
					width: 152rpx;
					height: 40rpx;
					margin-left: 32rpx;
				}
			}
		}
	}
</style>